import request from '@/utils/request.js';
// 科室列表
export const depart = () => {
  return request({
    url: 'pc/Depart/index',
    method: 'post',
    data: {},
  }).then((res) => {
    return res;
  });
};
// 添加医生
export const addDoctor = (data) => {
  console.log(data);
  return request({
    url: 'pc/Doctor/add',
    method: 'post',
    data: {
      ...data,
    },
  }).then((res) => {
    return res;
  });
};
// 医生列表
export const doctor = () => {
  return request({
    url: 'pc/doctor/index',
    method: 'post',
    data: {},
  }).then((res) => {
    return res;
  });
};
// 标签列表
export const lable = () => {
  return request({
    url: 'pc/label/index',
    method: 'post',
    data: {},
  }).then((res) => {
    return res;
  });
};
// 医院信息
export const hospital = () => {
  return request({
    url: 'pc/Hospital/index',
    method: 'post',
    data: {},
  }).then((res) => {
    return res;
  });
};
// 删除医生
export const deleteDoctor = (data) => {
  return request({
    url: 'pc/doctor/del',
    method: 'post',
    data: {
      ...data,
    },
  }).then((res) => {
    return res;
  });
};
